package com.neulogistics.contrib.procuredcenter.api.application.converter;

import cn.hutool.json.JSONUtil;
import com.neulogistics.contrib.procuredcenter.api.application.query.GoodsQuery;
import com.neulogistics.contrib.procuredcenter.infrastructure.persistence.orm.po.GoodsPO;
import org.springframework.beans.BeanUtils;

public class GoodsQueryPOConverter {
    public static GoodsPO queryToPO(GoodsQuery goodsQuery){
        if(goodsQuery == null){
            return null;
        }

        GoodsPO goodsPO = new GoodsPO();

        BeanUtils.copyProperties(goodsQuery, goodsPO);

        return goodsPO;
    }
}
